<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DM-CtrlH7-BF-DevProgram: IO operation functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="50x5.png"/></td>
  <td id="projectalign">
   <div id="projectname">DM-CtrlH7-BF-DevProgram<span id="projectnumber">&#160;beta 0.1</span>
   </div>
   <div id="projectbrief">C.ONE Studio Damiao Development Board Framework</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search',true);
  $(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(function(){initNavTree('group___u_a_r_t___exported___functions___group2.html','',''); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">IO operation functions <div class="ingroups"><a class="el" href="group___s_t_m32_h7xx___h_a_l___driver.html">STM32H7xx_HAL_Driver</a> &raquo; <a class="el" href="group___u_a_r_t.html">UART</a> &raquo; <a class="el" href="group___u_a_r_t___exported___functions.html">UART Exported Functions</a></div></div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-func-members" class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga01a7a7ac3cf0a262814ba44ee7580ddb" id="r_ga01a7a7ac3cf0a262814ba44ee7580ddb"><td class="memItemLeft" align="right" valign="top"><a id="ga01a7a7ac3cf0a262814ba44ee7580ddb" name="ga01a7a7ac3cf0a262814ba44ee7580ddb"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_Transmit</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)</td></tr>
<tr class="memitem:gab868edc590e3b827a14528a25c999e2f" id="r_gab868edc590e3b827a14528a25c999e2f"><td class="memItemLeft" align="right" valign="top"><a id="gab868edc590e3b827a14528a25c999e2f" name="gab868edc590e3b827a14528a25c999e2f"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_Receive</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)</td></tr>
<tr class="memitem:ga695812b114bd1eb4d9afd6831143b01b" id="r_ga695812b114bd1eb4d9afd6831143b01b"><td class="memItemLeft" align="right" valign="top"><a id="ga695812b114bd1eb4d9afd6831143b01b" name="ga695812b114bd1eb4d9afd6831143b01b"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_Transmit_IT</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart, const uint8_t *pData, uint16_t Size)</td></tr>
<tr class="memitem:gadc0c3ef2109881d011601f0d41e70e40" id="r_gadc0c3ef2109881d011601f0d41e70e40"><td class="memItemLeft" align="right" valign="top"><a id="gadc0c3ef2109881d011601f0d41e70e40" name="gadc0c3ef2109881d011601f0d41e70e40"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_Receive_IT</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart, uint8_t *pData, uint16_t Size)</td></tr>
<tr class="memitem:ga821472e8c11e667d793b829a19c3e46c" id="r_ga821472e8c11e667d793b829a19c3e46c"><td class="memItemLeft" align="right" valign="top"><a id="ga821472e8c11e667d793b829a19c3e46c" name="ga821472e8c11e667d793b829a19c3e46c"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_Transmit_DMA</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart, const uint8_t *pData, uint16_t Size)</td></tr>
<tr class="memitem:gad674cce054e58927720cd689620ffa08" id="r_gad674cce054e58927720cd689620ffa08"><td class="memItemLeft" align="right" valign="top"><a id="gad674cce054e58927720cd689620ffa08" name="gad674cce054e58927720cd689620ffa08"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_Receive_DMA</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart, uint8_t *pData, uint16_t Size)</td></tr>
<tr class="memitem:ga8a713fd976d8ef02b818ea6ff0d4e41a" id="r_ga8a713fd976d8ef02b818ea6ff0d4e41a"><td class="memItemLeft" align="right" valign="top"><a id="ga8a713fd976d8ef02b818ea6ff0d4e41a" name="ga8a713fd976d8ef02b818ea6ff0d4e41a"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_DMAPause</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:gaf2b3e6004d0200857781809baa16072d" id="r_gaf2b3e6004d0200857781809baa16072d"><td class="memItemLeft" align="right" valign="top"><a id="gaf2b3e6004d0200857781809baa16072d" name="gaf2b3e6004d0200857781809baa16072d"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_DMAResume</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:gab21aa06cfbaa1665b1062a803fcb4217" id="r_gab21aa06cfbaa1665b1062a803fcb4217"><td class="memItemLeft" align="right" valign="top"><a id="gab21aa06cfbaa1665b1062a803fcb4217" name="gab21aa06cfbaa1665b1062a803fcb4217"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_DMAStop</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:ga2d7be1f59fc810f49dadc580307a4862" id="r_ga2d7be1f59fc810f49dadc580307a4862"><td class="memItemLeft" align="right" valign="top"><a id="ga2d7be1f59fc810f49dadc580307a4862" name="ga2d7be1f59fc810f49dadc580307a4862"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_Abort</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:ga5a8858ffca45541416097961523d5fb2" id="r_ga5a8858ffca45541416097961523d5fb2"><td class="memItemLeft" align="right" valign="top"><a id="ga5a8858ffca45541416097961523d5fb2" name="ga5a8858ffca45541416097961523d5fb2"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_AbortTransmit</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:ga9732372cfae60c019bb41554ab12edd6" id="r_ga9732372cfae60c019bb41554ab12edd6"><td class="memItemLeft" align="right" valign="top"><a id="ga9732372cfae60c019bb41554ab12edd6" name="ga9732372cfae60c019bb41554ab12edd6"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_AbortReceive</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:ga3183626ee21f103cbcb50241eca50e4d" id="r_ga3183626ee21f103cbcb50241eca50e4d"><td class="memItemLeft" align="right" valign="top"><a id="ga3183626ee21f103cbcb50241eca50e4d" name="ga3183626ee21f103cbcb50241eca50e4d"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_Abort_IT</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:ga0fba12f56413e2dbe8b96040ecf5aa7e" id="r_ga0fba12f56413e2dbe8b96040ecf5aa7e"><td class="memItemLeft" align="right" valign="top"><a id="ga0fba12f56413e2dbe8b96040ecf5aa7e" name="ga0fba12f56413e2dbe8b96040ecf5aa7e"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_AbortTransmit_IT</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:gaad7bc5748b849abc29d18b2ddd02876f" id="r_gaad7bc5748b849abc29d18b2ddd02876f"><td class="memItemLeft" align="right" valign="top"><a id="gaad7bc5748b849abc29d18b2ddd02876f" name="gaad7bc5748b849abc29d18b2ddd02876f"></a>
<a class="el" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a>&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_AbortReceive_IT</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:gaad01472c507ceee3c5f2274c775ff3bf" id="r_gaad01472c507ceee3c5f2274c775ff3bf"><td class="memItemLeft" align="right" valign="top"><a id="gaad01472c507ceee3c5f2274c775ff3bf" name="gaad01472c507ceee3c5f2274c775ff3bf"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_IRQHandler</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:ga49b287e7de94cd0a38d333629298f7c4" id="r_ga49b287e7de94cd0a38d333629298f7c4"><td class="memItemLeft" align="right" valign="top"><a id="ga49b287e7de94cd0a38d333629298f7c4" name="ga49b287e7de94cd0a38d333629298f7c4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_TxHalfCpltCallback</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:gabcdf9b59049eccbc87d54042f9235b1a" id="r_gabcdf9b59049eccbc87d54042f9235b1a"><td class="memItemLeft" align="right" valign="top"><a id="gabcdf9b59049eccbc87d54042f9235b1a" name="gabcdf9b59049eccbc87d54042f9235b1a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_TxCpltCallback</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:ga1884970cc493d8efba5aec28c0d526e7" id="r_ga1884970cc493d8efba5aec28c0d526e7"><td class="memItemLeft" align="right" valign="top"><a id="ga1884970cc493d8efba5aec28c0d526e7" name="ga1884970cc493d8efba5aec28c0d526e7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_RxHalfCpltCallback</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:gae494a9643f29b87d6d81e5264e60e57b" id="r_gae494a9643f29b87d6d81e5264e60e57b"><td class="memItemLeft" align="right" valign="top"><a id="gae494a9643f29b87d6d81e5264e60e57b" name="gae494a9643f29b87d6d81e5264e60e57b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_RxCpltCallback</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:ga0e0456ea96d55db31de947fb3e954f18" id="r_ga0e0456ea96d55db31de947fb3e954f18"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga0e0456ea96d55db31de947fb3e954f18">HAL_UART_ErrorCallback</a> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memdesc:ga0e0456ea96d55db31de947fb3e954f18"><td class="mdescLeft">&#160;</td><td class="mdescRight">当串口发送/接收出现错误时,会调用此函数,此时这个函数要做的就是重新启动接收  <br /></td></tr>
<tr class="memitem:gacdcb274a742093c45869f2cfbb0a8b09" id="r_gacdcb274a742093c45869f2cfbb0a8b09"><td class="memItemLeft" align="right" valign="top"><a id="gacdcb274a742093c45869f2cfbb0a8b09" name="gacdcb274a742093c45869f2cfbb0a8b09"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_AbortCpltCallback</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:gacf94995fb9986930151f3c5586d37e5c" id="r_gacf94995fb9986930151f3c5586d37e5c"><td class="memItemLeft" align="right" valign="top"><a id="gacf94995fb9986930151f3c5586d37e5c" name="gacf94995fb9986930151f3c5586d37e5c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_AbortTransmitCpltCallback</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:ga0f9d15c5ae7b69f09e0ee5f2461e7e7a" id="r_ga0f9d15c5ae7b69f09e0ee5f2461e7e7a"><td class="memItemLeft" align="right" valign="top"><a id="ga0f9d15c5ae7b69f09e0ee5f2461e7e7a" name="ga0f9d15c5ae7b69f09e0ee5f2461e7e7a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>HAL_UART_AbortReceiveCpltCallback</b> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart)</td></tr>
<tr class="memitem:ga925534fb8bf7ca464fd05c982fe4bfa0" id="r_ga925534fb8bf7ca464fd05c982fe4bfa0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga925534fb8bf7ca464fd05c982fe4bfa0">HAL_UARTEx_RxEventCallback</a> (<a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *huart, uint16_t Size)</td></tr>
<tr class="memdesc:ga925534fb8bf7ca464fd05c982fe4bfa0"><td class="mdescLeft">&#160;</td><td class="mdescRight">每次dma/idle中断发生时，都会调用此函数.对于每个uart实例会调用对应的回调进行进一步的处理 例如:视觉协议解析/遥控器解析/裁判系统解析  <br /></td></tr>
</table>
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
<a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Function Documentation</h2>
<a id="ga0e0456ea96d55db31de947fb3e954f18" name="ga0e0456ea96d55db31de947fb3e954f18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0e0456ea96d55db31de947fb3e954f18">&#9670;&#160;</a></span>HAL_UART_ErrorCallback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HAL_UART_ErrorCallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *</td>          <td class="paramname"><span class="paramname"><em>huart</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>当串口发送/接收出现错误时,会调用此函数,此时这个函数要做的就是重新启动接收 </p>
<dl class="section note"><dt>Note</dt><dd>最常见的错误:奇偶校验/溢出/帧错误</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">huart</td><td>发生错误的串口 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga925534fb8bf7ca464fd05c982fe4bfa0" name="ga925534fb8bf7ca464fd05c982fe4bfa0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga925534fb8bf7ca464fd05c982fe4bfa0">&#9670;&#160;</a></span>HAL_UARTEx_RxEventCallback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HAL_UARTEx_RxEventCallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___u_a_r_t___exported___types.html#ga5de4a49eb132735325e706f406c69d6e">UART_HandleTypeDef</a> *</td>          <td class="paramname"><span class="paramname"><em>huart</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t</td>          <td class="paramname"><span class="paramname"><em>Size</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>每次dma/idle中断发生时，都会调用此函数.对于每个uart实例会调用对应的回调进行进一步的处理 例如:视觉协议解析/遥控器解析/裁判系统解析 </p>
<dl class="section note"><dt>Note</dt><dd>通过__HAL_DMA_DISABLE_IT(huart-&gt;hdmarx,DMA_IT_HT)关闭dma half transfer中断防止两次进入HAL_UARTEx_RxEventCallback() 这是HAL库的一个设计失误,发生DMA传输完成/半完成以及串口IDLE中断都会触发HAL_UARTEx_RxEventCallback() 我们只希望处理，因此直接关闭DMA半传输中断第一种和第三种情况</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">huart</td><td>发生中断的串口 </td></tr>
    <tr><td class="paramname">Size</td><td>此次接收到的总数居量,暂时没用 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="page-nav" class="page-nav-panel">
<div id="page-nav-resize-handle"></div>
<div id="page-nav-tree">
<div id="page-nav-contents">
</div><!-- page-nav-contents -->
</div><!-- page-nav-tree -->
</div><!-- page-nav -->
</div><!-- container -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li>
  </ul>
</div>
</body>
</html>
